<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<title>栏目管理</title>
<link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
<link rel="stylesheet" href="../static/web/css/admin.css">
<script src="../static/web/js/jquery.min.js"></script>
<script src="js/main.js"></script>
<script>
  var channelArray = new Array();
  <?php    
  $i = 0;
  foreach($channelArray as $k=> $arr){
    echo "channelArray[$k] = \"{$arr['nid']}\";";
  }
  ?>
  function Nav() {
    if (window.navigator.userAgent.indexOf("MSIE") >= 1) return 'IE';
    else if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF';
    else return "OT";
  }
  function SelectTemplets(fname) {
    var pos = GetWinPos(800,600);
    window.open("./dialog/select_templets.php?f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top);
  }
  function ShowHide(objname) {
    var obj = document.getElementById(objname);
    if (obj.style.display != "none")
    obj.style.display = "none";
    else {
      if (Nav() == 'IE') obj.style.display = "block";
      else obj.style.display = "table-row";
    }
  }
  function ShowObj(objname) {
    var obj = document.getElementById(objname);
    if (Nav() == 'IE') obj.style.display = "block";
    else obj.style.display = "table";
  }
  function HideObj(objname) {
    var obj = document.getElementById(objname);
    obj.style.display = "none";
  }
  function ShowItem1() {
    ShowObj('head1'); ShowObj('needset');
    HideObj('head2'); HideObj('adset');
    HideObj('head3'); HideObj('ctset');
  }
  function ShowItem2() {
    ShowObj('head2'); ShowObj('adset');
    HideObj('head1'); HideObj('needset');
    HideObj('head3'); HideObj('ctset');
  }
  function ShowItem3() {
    ShowObj('head3'); ShowObj('ctset');
    HideObj('head1'); HideObj('needset');
    HideObj('head2'); HideObj('adset');
  }
  function CheckTypeDir() {
    var upinyin = document.getElementById('upinyin');
    var tpobj = document.getElementById('typedir');
    if (upinyin.checked) tpobj.style.display = "none";
    else tpobj.style.display = "block";
  }
  function ParTemplet(obj) {
    var sevvalue = channelArray[obj.value];
    var tobj = document.getElementById('smclass');
    var tempindex = document.getElementsByName('tempindex');
    var templist = document.getElementsByName('templist');
    var temparticle = document.getElementsByName('temparticle');
    var dfstyle = document.getElementsByName('dfstyle');
    var dfstyleValue = dfstyle[0].value;
    tempindex[0].value = dfstyleValue + "/index_" + sevvalue + ".htm";
    templist[0].value = dfstyleValue + "/list_" + sevvalue + ".htm";
    temparticle[0].value = dfstyleValue + "/article_" + sevvalue + ".htm";
    if (obj.value < 0) {
      if (Nav() == 'IE') tobj.style.display = "block";
      else tobj.style.display = "table-row";
    } else {
      tobj.style.display = "none";
    }
  }
  function checkSubmit() {
    if (document.form1.typename.value == "") {
      alert("栏目名称不能为空");
      document.form1.typename.focus();
      return false;
    }
    return true;
  }
  function CheckCross() {
    var cross2 = document.getElementById('cross2');
    var crossid = document.getElementById('crossid');
    if (cross2.checked) crossid.style.display = 'block';
    else crossid.style.display = 'none';
}
</script>
<style type="text/css">
#needset tr,#adset tr{height:40px;}
input[type="radio"]{width:18px;height:18px;vertical-align:middle;border:0;margin:0;margin-right:5px;}
input[type="text"], input[type="password"]{height:40px;line-height:40px;padding:0 15px;}
.bline{border-bottom:none;height:40px;padding:0 0 10px;}
.coolbg{padding:0 15px !important;line-height:38px;}
input{outline:none;}
.baocun-ke:hover,.coolbg:hover,.baocun-ke-fh:hover{background:#333 !important;}
.sel-vip li{overflow:hidden;width:80px;height:40px;line-height:40px;background:#f3f5f7;border:1px solid #ddd;cursor:pointer;;display:inline-block;text-align:center;border-radius:3px;}
.sel-vip li.on{border-color:#f30;color:#f30;background:#ffe5df;}
.sel-vip li:hover{border-color:#f30;color:#f30;background:#ffe5df;}
select{outline:0;}
</style>
</head>
<body leftmargin='15' topmargin='10' bgcolor="#FFFFFF">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><td height="10"></td></tr>
<tr>
<form name="form1" action="catalog_edit.php" method="post" onSubmit="return checkSubmit();">
<input type="hidden" name="dopost" value="save" />
<input type="hidden" name="id" value="<?php echo $id; ?>" />
<input type="hidden" name="q" value="<?php echo $q; ?>" />
<input type="hidden" name="topid" value="<?php echo $myrow['topid']; ?>" />


<td height="95" align="center" bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" id="head1" cellpadding="0">
<tr>
<td colspan="2" bgcolor="#FFFFFF" align="left">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="24" align="center" style="background:#f30;color:#fff;font-size:14px;padding:0 20px;line-height:40px;cursor:pointer;"><?php
if ($channelid == 17) { //这里写内容模型ID，写进去的模型为隐藏//
?>
修改课程
<?php
} 
?>
<?php
if ($channelid == 1) { //这里写内容模型ID，写进去的模型为隐藏//
?>
修改栏目
<?php
} 
?>
<?php
if ($channelid == 18) { //这里写内容模型ID，写进去的模型为隐藏//
?>
修改分类
<?php
} 
?>
</td>
<td align="center" style="background:#333;line-height:40px;"><a href="#" onClick="ShowItem2()" style="color:#fff;padding:0 20px;display:inline-block;">高级选项</a></td>
<td align="center" style="background:#51acf9;line-height:40px;"><a href="#" onClick="ShowItem3()" style="color:#fff;padding:0 20px;display:inline-block;">
<?php
if ($channelid == 17) { //这里写内容模型ID，写进去的模型为隐藏//
?>
课程介绍
<?php
} 
?>
<?php
if ($channelid == 1) { //这里写内容模型ID，写进去的模型为隐藏//
?>
栏目内容
<?php
} 
?>
<?php
if ($channelid == 18) { //这里写内容模型ID，写进去的模型为隐藏//
?>
栏目内容
<?php
} 
?>
</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" id="head2" cellpadding="0" style="display:none">
<tr>
<td colspan="2" bgcolor="#FFFFFF"  style="text-align:left;">
<table height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" style="background:#f30;line-height:40px;"><a href="#" onClick="ShowItem1()" style="color:#fff;padding:0 20px;display:inline-block;">
<?php
if ($channelid == 17) { //这里写内容模型ID，写进去的模型为隐藏//
?>
修改课程
<?php
} 
?>
<?php
if ($channelid == 1) { //这里写内容模型ID，写进去的模型为隐藏//
?>
修改栏目
<?php
} 
?>
<?php
if ($channelid == 18) { //这里写内容模型ID，写进去的模型为隐藏//
?>
修改分类
<?php
} 
?>
</a>
</td>
<td align="center" style="background:#333;color:#fff;font-size:14px;padding:0 20px;line-height:40px;cursor:pointer;">高级选项</td>
<td align="center" style="background:#51acf9;line-height:40px;"><a href="#" onClick="ShowItem3()" style="color:#fff;padding:0 20px;display:inline-block;">
<?php
if ($channelid == 17) { //这里写内容模型ID，写进去的模型为隐藏//
?>
课程介绍
<?php
} 
?>
<?php
if ($channelid == 1) { //这里写内容模型ID，写进去的模型为隐藏//
?>
栏目内容
<?php
} 
?>
<?php
if ($channelid == 18) { //这里写内容模型ID，写进去的模型为隐藏//
?>
栏目内容
<?php
} 
?>
</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" id="head3" cellpadding="0" style="display:none">
<tr>
<td colspan="2" bgcolor="#FFFFFF" style="text-align:left;">
<table height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" style="background:#f30;line-height:40px;"><a href="#" onClick="ShowItem1()" style="color:#fff;padding:0 20px;display:inline-block;">
<?php
if ($channelid == 17) { //这里写内容模型ID，写进去的模型为隐藏//
?>
修改课程
<?php
} 
?>
<?php
if ($channelid == 1) { //这里写内容模型ID，写进去的模型为隐藏//
?>
修改栏目
<?php
} 
?>
<?php
if ($channelid == 18) { //这里写内容模型ID，写进去的模型为隐藏//
?>
修改分类
<?php
} 
?>
</a>
</td>
<td align="center" style="background:#333;line-height:40px;"><a href="#" onClick="ShowItem2()" style="color:#fff;padding:0 20px;display:inline-block;">高级选项</a></td>
<td align="center" style="background:#51acf9;color:#fff;font-size:14px;padding:0 20px;line-height:40px;cursor:pointer;">
<?php
if ($channelid == 17) { //这里写内容模型ID，写进去的模型为隐藏//
?>
课程介绍
<?php
} 
?>
<?php
if ($channelid == 1) { //这里写内容模型ID，写进去的模型为隐藏//
?>
栏目内容
<?php
} 
?>
<?php
if ($channelid == 18) { //这里写内容模型ID，写进去的模型为隐藏//
?>
栏目内容
<?php
} 
?>
</td>
</tr>
</table>
</td>
</tr>
</table>


<table width="100%" border="0" id="needset" cellspacing="0" cellpadding="0" style="text-align:left;margin:20px 0;">
<tr style='display:none;'> 
<td width="150" class='bline' height="26" style="padding-left:10px;">是否支持投稿：</td>
<td class='bline'>
<input type='radio' name='issend' value='0' class='np' <?php if($myrow['issend']=="0") echo " checked='1' ";?> />不支持&nbsp;
<input type='radio' name='issend' value='1' class='np' <?php if($myrow['issend']=="1") echo " checked='1' ";?> />支持</td>
</tr>



<tr style="display:none;"> 
<td width="150" class='bline' height="26" style="padding-left:10px;">显示类目：</td>
<td class='bline'>
<input type='radio' name='ishidden' value='0' class='np'<?php if($myrow['ishidden']=="0") echo " checked='1' ";?>/>显示　&nbsp; 
<input type='radio' name='ishidden' value='1' class='np'<?php if($myrow['ishidden']=="1") echo " checked='1' ";?>/>隐藏
</td>
</tr>



<?php
if ($channelid == 17) { //这里写内容模型ID，写进去的模型为隐藏//
?>
<tr> 
<td width="150" class='bline' height="26" style="padding-left:10px;">精选好课：</td>
<td class='bline'> <input type='radio' name='isrecommend' value='0' class='np'<?php if($myrow['isrecommend']=="0") echo " checked='1' ";?>/>推荐  &nbsp;
<input type='radio' name='isrecommend' value='1' class='np'<?php if($myrow['isrecommend']=="1") echo " checked='1' ";?>/>隐藏</td>
</tr>

<tr>
<td width="150" class='bline' height="26" style="padding-left:10px;">课程分类：</td>
<td class='bline'>
<?php echo getTypeShuxing($myrow['fenlei']); ?>
</td>
</tr>
<?php
}
?>



<?php
if ($channelid == 18) { //这里写内容模型ID，写进去的模型为隐藏//
?>
<tr>
<td width="150" class='bline' height="26" style="padding-left:10px;">分类名称：</td>
<td class='bline'><?php  echo getTypeShuxing(''); ?></td>
</tr>
<?php
} 
?>



<?php
if ($channelid == 1) { //这里写内容模型ID，写进去的模型为隐藏//
?>
<tr> 
<td class='bline' height="26" style="padding-left:10px;">内容模型：</td>
<td class='bline'>
<select name="channeltype" id="channeltype" style="width:200px;margin-bottom:10px;height:40px;" onChange="ParTemplet(this)">
<?php    
foreach($channelArray as $k=>$arr)
{
if($k==$channelid) echo "<option value='{$k}' selected>{$arr['typename']}|{$arr['nid']}</option>\r\n";
else  echo "<option value='{$k}'>{$arr['typename']}|{$arr['nid']}</option>\r\n";
}
?>
</select>
</td>
</tr>
<?php
} 
?>



<?php
if ($channelid == 17) { //这里写内容模型ID，写进去的模型为隐藏//
?>
<tr style="display:none;">
<td class='bline' height="26" style="padding-left:10px;">内容模型：</td>
<td class='bline11'>
<select name="channeltype" id="channeltype" style="width:200px;margin-bottom:10px;height:40px;" onChange="ParTemplet(this)">
<?php    
foreach($channelArray as $k=>$arr)
{
if($k==$channelid) echo "<option value='{$k}' selected>{$arr['typename']}|{$arr['nid']}</option>\r\n";
else  echo "<option value='{$k}'>{$arr['typename']}|{$arr['nid']}</option>\r\n";
}
?>
</select>
</td>
</tr>
<?php
} 
?>


<?php
if ($channelid == 18) { //这里写内容模型ID，写进去的模型为隐藏//
?>
<tr style="display:none;">
<td class='bline' height="26" style="padding-left:10px;">内容模型：</td>
<td class='bline11'>
<select name="channeltype" id="channeltype" style="width:200px;margin-bottom:10px;height:40px;" onChange="ParTemplet(this)">
<?php    
foreach($channelArray as $k=>$arr)
{
if($k==$channelid) echo "<option value='{$k}' selected>{$arr['typename']}|{$arr['nid']}</option>\r\n";
else  echo "<option value='{$k}'>{$arr['typename']}|{$arr['nid']}</option>\r\n";
}
?>
</select>
</td>
</tr>
<?php
} 
?>




<tr style="display:none;">
<td class='bline' height="26" style="padding-left:10px;">课程类型：</td>
<td class='bline11'>
<input name="kcyj" type="text" id="kcyj" value="<?php echo $myrow['kcyj']?>" class="paytypeinp" style="display:none;">
<div class="sel-vip">
<ul class="clearfix jjpaytype">
<li class="fl" val="a">视频</li>
<li class="fl" val="y">音频</li>
<li class="fl" val="t">图文</li>
</ul>
</div>
</td>
</tr>



<?php
if ($channelid == 17) { //这里写内容模型ID，写进去的模型为隐藏//
?>
<tr> 
<td class='bline' height="26" style="padding-left:10px;"><font color='red'>课程价格：</font></td>
<td class='bline'>
<input name="price" type="text" id="price" size="30" maxlength="5" placeholder="售价，免费课保留为空" autocomplete="off" value="<?php echo $myrow['price']?>" class="paytypeinp iptxt" style="margin-right:8px;width:180px;float:left;" />
</td>
</tr>
<?php
} 
?>





<tr> 
<td class='bline' height="26" style="padding-left:10px;">
<?php
if ($channelid == 17) { //这里写内容模型ID，写进去的模型为隐藏//
?>
<font color='red'>课程标题：</font>
<?php
} 
?>
<?php
if ($channelid == 1) { //这里写内容模型ID，写进去的模型为隐藏//
?>
<font color='red'>栏目标题：</font>
<?php
} 
?>
<?php
if ($channelid == 18) { //这里写内容模型ID，写进去的模型为隐藏//
?>
<font color='red'>分类标题：</font>
<?php
} 
?>
</td>


<td class='bline'>
<?php
if ($channelid == 17) { //这里写内容模型ID，写进去的模型为隐藏//
?>
<input name="typename" type="text" id="typename" size="30" maxlength="40" placeholder="40字以内，建议包含核心卖点，以利于搜索优化" value="<?php echo $myrow['typename']?>" autocomplete="off" class="iptxt" style="width:500px;margin-right:8px;" />
<?php
} 
?>
<?php
if ($channelid == 1) { //这里写内容模型ID，写进去的模型为隐藏//
?>
<input name="typename" type="text" id="typename" size="30" maxlength="40" placeholder="40字以内" value="<?php echo $myrow['typename']?>" autocomplete="off" class="iptxt" style="width:500px;margin-right:8px;" />
<?php
} 
?>
<?php
if ($channelid == 18) { //这里写内容模型ID，写进去的模型为隐藏//
?>
<input name="typename" type="text" id="typename" size="30" maxlength="40" placeholder="40字以内" value="<?php echo $myrow['typename']?>" autocomplete="off" class="iptxt" style="width:500px;margin-right:8px;" />
<?php
} 
?>
</td>
</tr>





<?php
if ($channelid == 17) { //这里写内容模型ID，写进去的模型为隐藏//
?>
<tr> 
<td class='bline' height="26" style="padding-left:10px;">课程亮点：</td>
<td class='bline'><input name="namegk" type="text" id="namegk" maxlength="70" placeholder="50字以内，概括课程亮点、打动用户、提高转化" autocomplete="off" value="<?php echo $myrow['namegk']?>" class="iptxt" style="width:500px;margin-right:8px;" /></td>
</tr>
<tr>
<td class='bline' height="26" style="padding-left:10px;">封面图片：</td>
<td class='bline'>
<input name="bigpic" type="text" class="alltxt" value="<?php echo $myrow['bigpic']?>" placeholder="尺寸：640×360px" autocomplete="off" style="width:500px">
<style>
.diyfileinput-button{display:inline-block;position:relative;width:80px;line-height:40px;padding:0;font-size:14px;border:0;overflow:hidden;}
.diyfileinput-button input{position:absolute;top:0;right:0;margin:0;opacity:0;direction:ltr;cursor:pointer}
</style>
<span class="btn btn-success btn-sm diyfileinput-button">上传图片<input type="file" name="files[]" class="iptAddImages" data-target="bigpic"></span>
</td>
</tr>
<?php
} 
?>





<?php
if ($channelid == 18) { //这里写内容模型ID，写进去的模型为隐藏//
?>
<tr>
<td class='bline' height="26" style="padding-left:10px;">封面图片：</td>
<td class='bline'>
<input name="bigpic" type="text" class="alltxt" value="<?php echo $myrow['bigpic']?>" placeholder="尺寸：100×100px" autocomplete="off" style="width:500px">
<style>
.diyfileinput-button{display:inline-block;position:relative;width:80px;line-height:40px;padding:0;font-size:14px;border:0;overflow:hidden;}
.diyfileinput-button input{position:absolute;top:0;right:0;margin:0;opacity:0;direction:ltr;cursor:pointer}
</style>
<span class="btn btn-success btn-sm diyfileinput-button">上传图片<input type="file" name="files[]" class="iptAddImages" data-target="bigpic"></span>
</td>
</tr>
<?php
} 
?>






<?php
if ($channelid == 1) { //这里写内容模型ID，写进去的模型为隐藏//
?>
<tr>
<td class='bline' height="26" style="padding-left:10px;">封面图片：</td>
<td class='bline'>
<input name="bigpic" type="text" class="alltxt" value="<?php echo $myrow['bigpic']?>" placeholder="尺寸：100×100px" autocomplete="off" style="width:500px">
<style>
.diyfileinput-button{display:inline-block;position:relative;width:80px;line-height:40px;padding:0;font-size:14px;border:0;overflow:hidden;}
.diyfileinput-button input{position:absolute;top:0;right:0;margin:0;opacity:0;direction:ltr;cursor:pointer}
</style>
<span class="btn btn-success btn-sm diyfileinput-button">上传图片<input type="file" name="files[]" class="iptAddImages" data-target="bigpic"></span>
</td>
</tr>
<?php
} 
?>






<tr style='display:none;'> 
<td class='bline' height="26" style="padding-left:10px;">排列顺序：</td>
<td class='bline'> <input name="sortrank" size="6" type="text" value="<?php echo $myrow['sortrank']?>" class="iptxt" />由低&gt;高</td>
</tr>

          <tr style='display:none;'> 
            <td class='bline' height="26" style="padding-left:10px;">浏览权限：</td>
            <td class='bline'> <select name="corank" id="corank" style="width:100">
                <?php
              $dsql->SetQuery("Select * from #@__arcrank where rank >= 0");
              $dsql->Execute();
              while($row = $dsql->GetObject())
              {
                  if($myrow['corank']==$row->rank)
                    echo "<option value='".$row->rank."' selected>".$row->membername."</option>\r\n";
                        else
                          echo "<option value='".$row->rank."'>".$row->membername."</option>\r\n";
              }
              ?>
              </select>
              </td>
          </tr>
    <tr> 
    <td class='bline' height="26" style="padding-left:10px;">目录地址：</td>
    <td class='bline'><input name="typedir" type="text" id="typedir" value="<?php echo $myrow['typedir']?>" placeholder="请用英文或数字命名，不能使用中文、切勿重复" autocomplete="off" style="width:500px;margin-right:8px;" class="iptxt" /></td>
    </tr>
           <tr style='display:none'> 
            <td height="26" style="padding-left:10px;">栏目列表选项：</td>
            <td> <input type='radio' name='isdefault' value='1' class='np'<?php if($myrow['isdefault']==1) echo " checked='1' ";?>/>
              链接到默认页 
              <input type='radio' name='isdefault' value='0' style='display:none' class='np'<?php if($myrow['isdefault']==0) echo " checked='1' ";?>/>
              <input type='radio' name='isdefault' value='-1' class='np'<?php if($myrow['isdefault']==-1) echo " checked='1' ";?>/>
              使用动态页 </td>
          </tr>
          <tr style='display:none'> 
            <td class='bline' height="26" style="padding-left:10px;">默认页的名称： </td>
            <td class='bline'><input name="defaultname" type="text" value="<?php echo $myrow['defaultname']?>" class="iptxt" /></td>
          </tr>
          <tr style='display:none'> 
            <td height="26" class='bline' style="padding-left:10px;">栏目属性：</td>
            <td class='bline'>
                <input name="ispart" type="radio" id="radio" value="0" class='np'<?php if($myrow['ispart']==0) echo " checked='1' ";?>/>
              最终列表栏目（允许在本栏目发布文档，并生成文档列表）<br>
              <input name="ispart" type="radio" id="radio2" value="1" class='np'<?php if($myrow['ispart']==1) echo " checked='1' ";?>/>
              频道封面（栏目本身不允许发布文档）<br>
              <input name="ispart" type="radio" id="radio3" value="2" class='np'<?php if($myrow['ispart']==2) echo " checked='1' ";?>/>
              外部连接（在"文件保存目录"处填写网址）
              </td>
          </tr>
          <tr id='helpvarco' style='display:none'> 
            <td height="80" bgcolor="#F3F7EA" style="padding-left:10px;">栏目交叉说明： </td>
            <td bgcolor="#F3F7EA">
            交叉栏目是指一个大栏目与另一个非下级的子栏目出现交叉的情况，相当于系统原来的副栏目功能，不过现在改在栏目里预先设置好。<br />例如：
            网站上有大栏目——智能手机、音乐手机，另外又有栏目——诺基亚-&gt;智能手机、诺基亚-&gt;音乐手机，这样顶级的大栏目就和另一个大栏目的子栏目形成了交叉，这样只需要在大栏目中指定交叉的栏目即可。
            <br />注：会自动索引交叉栏目的内容，但不会索引交叉栏目下级栏目的内容，这种应用也适用于按地区划分资讯的站点。
            </td>
          </tr>
          <tr style='display:none'> 
            <td style="padding-left:10px;">栏目交叉：<img src="images/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:pointer" onClick="ShowHide('helpvarco')" /><br />仅适用[最终列表栏目]</td>
            <td class='bline' style="padding:3px 0px 3px 0px">
                <input name="cross" type="radio" id="cross0" onClick="CheckCross()" value="0" class='np'<?php if($myrow['cross']==0) echo " checked='1' ";?> />
                不交叉
                <input name="cross" type="radio" id="cross1" onClick="CheckCross()" value="1" class='np'<?php if($myrow['cross']==1) echo " checked='1' ";?>/>
                自动获取同名栏目内容
                <input name="cross" type="radio" id="cross2" onClick="CheckCross()" value="2" class='np'<?php if($myrow['cross']==2) echo " checked='1' ";?>/>
                手工指定交叉栏目ID(用逗号分开)
                <br />
                <textarea name="crossid" cols="50" rows="3" id="crossid" style="<?php if($myrow['cross']!=2) echo "display:none";?>" class="alltxt" ><?php echo $myrow['crossid']; ?></textarea>
            </td>
          </tr>
          <tr id='smclass' style='<?php echo ($channelid<0 ? '' : 'display:none'); ?>'>
            <td class='bline' style="padding-left:10px;">绑定小分类：  <br />仅适用[分类信息模型]</td>
            <td class='bline' style="padding:3px 0px 3px 0px">
                <select name='smalltype[]' size='5' style='width:120px' multiple='yes'>
                    <?php
                    $smtypes = explode(',',trim($myrow['smalltypes']));
                    $sql = "Select * From `#@__sys_enum` where egroup like 'infotype' order by disorder asc, id desc ";
                    $dsql->Execute('s',$sql);
                    while($arr = $dsql->GetArray('s'))
                    {
                        if(in_array($arr['evalue'],$smtypes)) {
                            $selstr = " selected='1' ";
                        }
                        else {
                            $selstr = '';
                        }
                        if($arr['evalue']%500==0) {
                            echo "<option value='{$arr['evalue']}'{$selstr}>{$arr['ename']}</option>\r\n";
                        }
                        else if(preg_match("#\.#", $arr['evalue']))
                        {
                            echo "<option value='{$arr['evalue']}'{$selstr}> └───{$arr['ename']}</option>\r\n";
                        }
                        else {
                            echo "<option value='{$arr['evalue']}'{$selstr}> └─{$arr['ename']}</option>\r\n";
                        }
                    }
                    ?>
                </select>    
                按 Ctrl 多选，不选系统将调用全部分类，在<a href='stepselect_main.php'>“<u>联动类别管理</u>”</a>中管理
            </td>
          </tr>
      </table>
       <table width="100%" border="0" cellspacing="0" cellpadding="0" style="display:none;text-align:left;margin:20px 0;" id="adset">
            <tr style='display:none'>
            <td height="24" bgcolor="#F3F7EA" style="padding-left:10px;width:120px;">规则选项：</td>
            <td bgcolor="#F3F7EA">按不同的内容类型设定相关模板及命名规则。</td>
            </tr>
          <tr style='display:none'> 
            <td class='bline' width="150" height="24" style="padding-left:10px;">多站点支持：</td>
            <td class='bline'> <input name="moresite" type="radio"  class="np" value="0"<?php if($myrow['moresite']==0) echo " checked='1' ";?>/>
              不启用 
              <input type="radio" name="moresite" class="np" value="1"<?php if($myrow['moresite']==1) echo " checked='1' ";?>/>
              启用 </td>
          </tr>
          <tr style='display:none'> 
            <td height="24" bgcolor="#F9FCEF" style="padding-left:10px;">说明：</td>
            <td bgcolor="#F9FCEF">绑名绑定仅需要在顶级栏目设定，子级栏目更改无效。</td>
          </tr>
          <tr style='display:none'> 
            <td class='bline' height="24" style="padding-left:10px;">绑定域名：</td>
            <td class='bline'> <input name="siteurl" type="text" id="siteurl" size="35" value="<?php echo $myrow['siteurl']?>" class="iptxt" />
              (需加 http://，一级或二级域名的根网址) </td>
          </tr>
          <tr style='display:none'> 
            <td class='bline' height="24" style="padding-left:10px;">站点根目录：</td>
            <td class='bline'>
            </td>
          </tr>
          <tr id='helpvar1' style='display:none'> 
            <td height="24" bgcolor="#F9FCEF" style="padding-left:10px;">支持变量： </td>
            <td bgcolor="#F9FCEF"> {tid}表示栏目ID，<br>
              {cid}表示频道模型的'名字ID' <font color='#888888'> （ 
              <?php
              foreach($channelArray as $k=>$arr)
              {
                   echo "{$arr['typename']}({$arr['nid']})、";
              }
             ?>
              ） </font> <br/>
              模板文件的默认位置是放在模板目录 "cms安装目录 
              <?php echo $cfg_templets_dir ?>
              " 内。 
          <input type='hidden' value='{style}' name='dfstyle'/></td>
          </tr>
          <tr> 
            <td height="26" style="padding-left:10px;width:120px;">封面模板：</td>
            <td> <input name="tempindex" type="text" value="<?php echo $myrow['tempindex']?>" style="width:300px;margin-bottom:10px;" class="iptxt" /> 
            </td>
          </tr>
          <tr> 
            <td height="26" style="padding-left:10px;width:120px;">列表模板：</td>
            <td><input name="templist" type="text" value="<?php echo $myrow['templist']?>" style="width:300px;margin-bottom:10px;" class="iptxt" /> 
            </td>
          </tr>
          <tr> 
            <td height="26" style="padding-left:10px;width:120px;">文章模板：</td>
            <td><input name="temparticle" type="text" value="<?php echo $myrow['temparticle']?>" style="width:300px;margin-bottom:10px;" class="iptxt" /> 
            </td>
          </tr>
          <tr id='helpvar2' style='display:none'> 
            <td height="24" bgcolor="#F9FCEF" style="padding-left:10px;width:120px;">支持变量： </td>
            <td height="24" bgcolor="#F9FCEF"> {Y}、{M}、{D} 年月日<br/>
              {timestamp} INT类型的UNIX时间戳<br/>
              {aid} 文章ID<br/>
              {pinyin} 拼音+文章ID<br/>
              {py} 拼音部首+文章ID<br/>
              {typedir} 栏目目录 <br/>
              {cc} 日期+ID混编后用转换为适合的字母 <br/>
              </td>
          </tr>
          <tr style='display:none'> 
            <td height="26" style="padding-left:10px;width:120px;">文章命名规则：</td>
            <td><input name="namerule" type="text" id="namerule" value="<?php echo $myrow['namerule']?>" size="40" class="iptxt" />
            </td>
          </tr>
          <tr id='helpvar3' style='display:none'> 
            <td height="24" bgcolor="#F9FCEF" style="padding-left:10px;width:120px;">支持变量： </td>
            <td bgcolor="#F9FCEF">{page} 列表的页码</td>
          </tr>
          <tr style='display:none'> 
            <td height="26" style="padding-left:10px;width:120px;">列表命名规则：</td>
            <td> <input name="namerule2" type="text" id="namerule2" value="<?php echo $myrow['namerule2']?>" size="40" class="iptxt" /> 
              <img src="images/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:pointer" onClick="ShowHide('helpvar3')"/></td>
          </tr>
          <tr>
            <td height="65" style="padding-left:10px;width:120px;">SEO标题：</td>
            <td>
                <input name="seotitle" type="text" style="width:300px" autocomplete="off" id="seotitle" class="alltxt" value="<?php echo $myrow['seotitle']?>" />
            </td>
          </tr>
          <tr> 
            <td height="65" style="padding-left:10px;width:120px;">关键字：</td>
            <td><input name="keywords" cols="70" rows="4" id="keywords" class="alltxt" autocomplete="off" style="border-color:none;height:40px;line-height:40px;padding:0 15px;width:300px;" value="<?php echo $myrow['keywords']?>"></td>
          </tr>
          <tr>
            <td height="65" style="padding-left:10px;width:120px;">栏目描述：</td>
            <td height="65"><textarea name="description" cols="70" style="height:80px;padding: 10px 15px;line-height:22px;" rows="4" id="description" class="alltxt" ><?php echo $myrow['description']?></textarea></td>
          </tr>
          <tr> 
            <td height="45" style="padding-left:10px;width:120px;">继承选项：</td>
            <td> 
              <input name="upnext" type="checkbox" id="upnext" value="1" class="np" />
              更改下级栏目的浏览权限、命名规则等通用属性
            </td>
          </tr>
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="display:none;text-align:left;margin:20px 0;" id="ctset">
          <tr style='display:none'> 
            <td height="28">&nbsp;说明：栏目内容是替代原来栏目单独页的更灵活的一种方式，可在栏目模板中用{dede:field.content/}调用，通常用于企业简介之类的用途。</td>
          </tr>
          <tr> 
            <td>
                <?php
                GetEditor("content",$myrow['content'],"450","Default","print","false");
                ?> 
            </td>
          </tr>
      </table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-top:none;">
<tr>
<td width="100%" valign="bottom">
<div class="yxw-ke-bottom" style="text-align:center;position:fixed;bottom:20px;left:50%;margin-left:-100px;">
<?php
if ($channelid == 17) { //这里写内容模型ID，写进去的模型为隐藏//
?>
<input name="imageField" type="submit" value="保存课程" class="baocun-ke" style="border-radius:3px;padding:0 20px;background:#28a745;font-size:16px;line-height:38px;margin:0 10px;border:none;" />
<?php
} 
?>
<?php
if ($channelid == 1) { //这里写内容模型ID，写进去的模型为隐藏//
?>
<input name="imageField" type="submit" value="保存栏目" class="baocun-ke" style="border-radius:3px;padding:0 20px;background:#28a745;font-size:16px;line-height:38px;margin:0 10px;border:none;" />
<?php
} 
?>
<?php
if ($channelid == 18) { //这里写内容模型ID，写进去的模型为隐藏//
?>
<input name="imageField" type="submit" value="保存分类" class="baocun-ke" style="border-radius:3px;padding:0 20px;background:#28a745;font-size:16px;line-height:38px;margin:0 10px;border:none;" />
<?php
} 
?>
<a href="catalog_main.php" class="baocun-ke-fh" style="border-radius:3px;padding:0 20px;background:#28a745;font-size:16px;line-height:38px;margin:0 10px;color:#fff;display:inline-block;">返回</a>
</div>
</td>
</tr>
</table>
</td>
</form>
</tr>
</table>


</body>
</html>